package WhiskeyGui;

/**
 * User: Mike
 * Date: 2/4/12
 */
public class Test {


    private static final double densEth = 0.789;
    private static final double densH20 = 1.0;
    private static final double volume = 42.0;


    public static void main(String[] args) {

        double mass = 37.0;
        double abv = (mass - densH20 * volume) / ((densEth - densH20) * volume);

        System.out.println("=========================================");
        System.out.println("given the following:");
        System.out.println("Density of ethanol =\t" + densEth);
        System.out.println("Density of water =\t\t" + densH20);
        System.out.println("Volume =\t\t\t\t" + volume);
        System.out.println("Mass =\t\t\t\t\t" + mass);
        System.out.println("\t");

        System.out.println("We get:");
        System.out.println("abv =\t" + abv);
        System.out.println("=========================================");

    }
}
